
import { LAYOUT } from '@/router/constant'
import { RoleEnum } from '@/enums/roleEnum';
// 详情白名单
export const WHITELIST = ['cvDetail', 'trainDetailes']
// 根据最外层name批量添加默认路由
export const DETAILPATH = ['applicationLists', 'trainList']

export const userRouter = [
  //今日待办
  {
    path: '/TodayEvent',
    name: 'TodayEvent',
    component: LAYOUT,
    componentStr: 'LAYOUT',
    redirect: "/TodayEvent/todo",
    meta: {
      icon: 'material-symbols:browse-outline',
      title: '工作台',
      // roles: [RoleEnum.Other],
      ignoreKeepAlive: false
    },
    children: [
      {
        path: 'todo',
        name: 'todo',
        component: () => import('@/views/TodayEvent/todayEvent.vue'),
        componentStr: '@/views/TodayEvent/todayEvent.vue',
        meta: {
          title: "工作台",
          // icon: 'material-symbols:browse-outline',
          hideMenu: true,
          // loaded: false,
          datas: 'todo',
          currentActiveMenu: '/TodayEvent',
        },
      }
    ],
  },
  //应聘列表
  {
    path: '/ApplicationList',
    name: 'applicationLists',
    component: LAYOUT,
    componentStr: 'LAYOUT',
    redirect: "/applicationList/applicationList",
    meta: {
      icon: 'icon-park-twotone:doc-search-two',
      title: '应聘列表',
      datas: 'applicationLists',
      ignoreKeepAlive: false
    },
    children: [
      {
        path: 'ypall',
        name: 'ypall',
        component: () => import('@/views/ApplicationList/applicationList.vue'),
        componentStr: '@/views/ApplicationList/applicationList.vue',
        meta: {
          title: '全部',
          datas: 'ypall',
        }
      },
      {
        path: 'jl',
        name: 'jl',
        component: () => import('@/views/ApplicationList/applicationList.vue'),
        componentStr: '@/views/ApplicationList/applicationList.vue',
        meta: {
          parentName: 'jl',
          title: '简历环节',
          datas: 'jl',
        },
        children: [
          {
            path: 'jldsx',
            name: 'jldsx',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'jl',
              title: "待筛选",
              datas: 'jldsx',
            }
          },
          {
            path: 'jltt',
            name: 'jltt',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'jl',
              title: "淘汰",
              datas: 'jltt',
            }
          }
        ]
      },
      {
        path: 'ms',
        name: 'ms',
        component: () => import('@/views/ApplicationList/applicationList.vue'),
        componentStr: '@/views/ApplicationList/applicationList.vue',
        meta: {
          title: '面试环节',
          datas: 'ms',
        },
        children: [
          {
            path: 'msdym',
            name: 'msdym',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'ms',
              title: "待约面",
              datas: 'msdym',
            }
          },
          {
            path: 'msdms',
            name: 'msdms',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'ms',
              title: "待面试",
              datas: 'msdms',
            }
          }, {
            path: 'mstt',
            name: 'mstt',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'ms',
              title: "淘汰",
              datas: 'mstt',
            }
          },
          {
            path: 'msfq',
            name: 'msfq',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'ms',
              title: "放弃",
              datas: 'msfq',
            }
          }
        ]
      },
      {
        path: 'px',
        name: 'px',
        component: () => import('@/views/ApplicationList/applicationList.vue'),
        componentStr: '@/views/ApplicationList/applicationList.vue',
        meta: {
          title: '培训环节',
          datas: 'px',
        },
        children: [
          {
            path: 'pxdy',
            name: 'pxdy',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'px',
              title: "待约",
              datas: 'pxdy',
            }
          },
          {
            path: 'pxdp',
            name: 'pxdp',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'px',
              title: "待培",
              datas: 'pxdp',
            }
          }, {
            path: 'pxpxz',
            name: 'pxpxz',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'px',
              title: "培训中",
              datas: 'pxpxz',
            }
          },
          {
            path: 'pxdlq',
            name: 'pxdlq',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'px',
              title: "待录取",
              datas: 'pxdlq',
            }
          }, {
            path: 'pxtt',
            name: 'pxtt',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'px',
              title: "淘汰",
              datas: 'pxtt',
            }
          },
          {
            path: 'pxfq',
            name: 'pxfq',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'px',
              title: "放弃",
              datas: 'pxfq',
            }
          }
        ]
      },
      {
        path: 'qy',
        name: 'qy',
        component: () => import('@/views/ApplicationList/applicationList.vue'),
        componentStr: '@/views/ApplicationList/applicationList.vue',
        meta: {
          title: '签约环节',
          datas: 'qy',
        },
        children: [
          {
            path: 'qydqyy',
            name: 'qydqyy',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'qy',
              title: "待签应约",
              datas: 'qydqyy',
            }
          },
          {
            path: 'qydqsf',
            name: 'qydqsf',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'qy',
              title: "待签三方",
              datas: 'qydqsf',
            }
          }, {
            path: 'qyfq',
            name: 'qyfq',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'qy',
              title: "放弃",
              datas: 'qyfq',
            }
          }
        ]
      },
      {
        path: 'rz',
        name: 'rz',
        component: () => import('@/views/ApplicationList/applicationList.vue'),
        componentStr: '@/views/ApplicationList/applicationList.vue',
        meta: {
          parentName: 'rz',
          title: '入职环节',
          datas: 'rz',
        },
        children: [
          {
            path: 'rzdrz',
            name: 'rzdrz',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'rz',
              title: "待入职",
              datas: 'rzdrz',
            }
          },
          {
            path: 'rzsxz',
            name: 'rzsxz',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'rz',
              title: "实习中",
              datas: 'rzsxz',
            }
          }, {
            path: 'rzsyq',
            name: 'rzsyq',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'rz',
              title: "试用期",
              datas: 'rzsyq',
            }
          },
          {
            path: 'rzyzz',
            name: 'rzyzz',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'rz',
              title: "已转正",
              datas: 'rzyzz',
            }
          }, {
            path: 'rzjy',
            name: 'rzjy',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'rz',
              title: "解约",
              datas: 'rzjy',
            }
          },
          {
            path: 'rzqt',
            name: 'rzqt',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'rz',
              title: "劝退",
              datas: 'rzqt',
            }
          },
          {
            path: 'rzlz',
            name: 'rzlz',
            component: () => import('@/views/ApplicationList/applicationList.vue'),
            componentStr: '@/views/ApplicationList/applicationList.vue',
            meta: {
              parentName: 'rz',
              title: "离职",
              datas: 'rzlz',
            },
          }
        ]
      },
      {
        path: 'join',
        name: 'joins',
        component: () => import('@/views/ApplicationList/Join.vue'),
        componentStr: '@/views/ApplicationList/Join.vue',
        meta: {
          title: "新增简历",
          icon: 'icon-park-twotone:doc-search-two',
          hideMenu: true,
          loaded: false,
          currentActiveMenu: '/Join',
        }
      }
    ],
  },
  //应聘详情 线上要隐藏
  {
    path: '/applicationDetails',
    name: 'applicationDetails',
    component: LAYOUT,
    componentStr: 'LAYOUT',
    redirect: "/applicationDetails/cvDetail",
    meta: {
      icon: 'mdi:form-select',
      title: '应聘详情',
      // roles: [RoleEnum.Super],
      hideMenu: true,
      //hideTab: true,
    },
    children: [
      {
        path: 'cvDetail',
        name: 'cvDetail',
        component: () => import('@/views/applicationDetails/CvIndex.vue'),
        componentStr: '@/views/applicationDetails/CvIndex.vue',
        id: 119,
        meta: {
          title: "应聘详情",
          icon: 'mdi:form-select',
          dynamicLevel: 1,
          loaded: false,
          realPath: '/applicationDetails',
          currentActiveMenu: '/applicationDetails',
        },
      }
    ],
  },
  //培训列表
  {
    path: '/TrainList',
    name: 'trainList',
    component: LAYOUT,
    componentStr: 'LAYOUT',
    redirect: "/trainList/trainList",
    meta: {
      icon: 'carbon:drill-through',
      title: '培训列表',
      datas: 'trainList',
      ignoreKeepAlive: false,
    },
    children: [
      {
        path: 'pxall',
        name: 'pxall',
        component: () => import('@/views/TrainList/trainList.vue'),
        componentStr: '@/views/TrainList/trainList.vue',
        meta: {
          title: '全部',
          datas: 'pxall'
        },
      },
      {
        path: 'pxwks',
        name: 'pxwks',
        component: () => import('@/views/TrainList/trainList.vue'),
        componentStr: '@/views/TrainList/trainList.vue',
        meta: {
          title: '未开始',
          datas: 'pxwks'
        },
      },
      {
        path: 'pxing',
        name: 'pxing',
        component: () => import('@/views/TrainList/trainList.vue'),
        componentStr: '@/views/TrainList/trainList.vue',
        meta: {
          title: '培训中',
          datas: 'pxing'
        },
      },
      {
        path: 'pxkhz',
        name: 'pxkhz',
        component: () => import('@/views/TrainList/trainList.vue'),
        componentStr: '@/views/TrainList/trainList.vue',
        meta: {
          title: '考核中',
          datas: 'pxkhz'
        },
      },
      {
        path: 'pxyjs',
        name: 'pxyjs',
        component: () => import('@/views/TrainList/trainList.vue'),
        componentStr: '@/views/TrainList/trainList.vue',
        meta: {
          title: '已结束',
          datas: 'pxyjs'
        },
      },
    ],
  },
  //培训详情 线上要隐藏
  {
    path: '/TrainDetails',
    name: 'trainDetails',
    component: LAYOUT,
    componentStr: 'LAYOUT',
    redirect: "/trainDetails/trainDetails",
    meta: {
      icon: 'mdi:form-select',
      title: '培训详情',
      // roles: [RoleEnum.Super],
      hideMenu: true,
      ignoreKeepAlive: false,
      //hideTab: true,
    },
    children: [
      {
        path: 'trainDetails',
        name: 'trainDetailes',
        component: () => import('@/views/TrainDetails/trainDetails.vue'),
        componentStr: '@/views/TrainDetails/trainDetails.vue',
        meta: {
          title: "培训详情",
          icon: 'mdi:form-select',
          currentActiveMenu: '/TrainDetails',
          hideMenu: true,
          loaded: false,
          dynamicLevel: 1,
          realPath: '/TrainDetails',
        },
      }
    ],
  },
  //数据中心
  {
    path: '/Data',
    name: 'data',
    component: LAYOUT,
    componentStr: 'LAYOUT',
    redirect: "/Data/RecruitmentProgress",
    meta: {
      icon: 'fluent:data-usage-24-regular',
      title: '数据中心',
      // roles: [RoleEnum.Other],

    },
    children: [
      {
        path: 'RecruitmentProgress',
        name: 'RecruitmentProgress',
        component: () => import('@/views/DataCenter/RecruitmentProgress/RecruitmentProgress.vue'),
        componentStr: '@/views/DataCenter/RecruitmentProgress/RecruitmentProgress.vue',
        meta: {
          title: "招聘进度",
          icon: "ri:progress-7-line",
          hideHeader: true
        },
      },
      {
        path: 'DemandDetails',
        name: 'DemandDetails',
        component: () => import('@/views/DataCenter/RecruitmentProgress/DemandDetails.vue'),
        componentStr: '@/views/DataCenter/RecruitmentProgress/DemandDetails.vue',
        meta: {
          title: "需求详情",
          hideMenu: true,
          loaded: false,
          dynamicLevel: 1,
        },
      },
      {
        path: 'ProgressDetails',
        name: 'ProgressDetails',
        component: () => import('@/views/DataCenter/RecruitmentProgress/ProgressDetails.vue'),
        componentStr: '@/views/DataCenter/RecruitmentProgress/ProgressDetails.vue',
        meta: {
          title: "招聘进度详情",
          hideMenu: true,
          loaded: false,
          dynamicLevel: 1,
        },
      },
      {
        path: 'DataReport',
        name: 'DataReport',
        component: () => import('@/views/DataCenter/HRStatement/HRStatement.vue'),
        componentStr: '@/views/DataCenter/HRStatement/HRStatement.vue',
        meta: {
          title: "HR报表",
          icon: 'game-icons:progression',
          hideHeader: true
        },
      },
      {
        path: 'HRStatementDetails',
        name: 'HRStatementDetails',
        component: () => import('@/views/DataCenter/HRStatement/HRStatementDetail.vue'),
        componentStr: '@/views/DataCenter/HRStatement/HRStatementDetail.vue',
        meta: {
          title: "HR报表详情",
          hideMenu: true,
          loaded: false,
          dynamicLevel: 1,
          currentActiveMenu: '/DataReport',
          realPath: '/DataReport',
        },
      },
      {
        path: 'HRData',
        name: 'HRData',
        component: () => import('@/views/DataCenter/HRData/HrData.vue'),
        componentStr: '@/views/DataCenter/HRData/HrData.vue',
        meta: {
          title: "HR数据",
          icon: "material-symbols:data-thresholding",
        },
      },
      {
        path: 'UniversityData',
        name: 'UniversityData',
        component: () => import('@/views/DataCenter/UniversityData/UniversityData.vue'),
        componentStr: '@/views/DataCenter/UniversityData/UniversityData.vue',
        meta: {
          title: "高校数据",
          icon: "ion:university",
        },
      },
    ],
  },
  //权限管理
  {
    path: '/UserPermissions',
    name: 'userPermissonsA',
    component: LAYOUT,
    componentStr: 'LAYOUT',
    redirect: "/UserPermissions/userPermissons",
    meta: {
      icon: 'majesticons:settings-cog-line',
      title: '权限管理',
      //roles: [RoleEnum.Other],
    },
    children: [
      {
        path: 'userPermissons',
        name: 'userPermissons',
        component: () => import('@/views/UserPermissions/userPermissons.vue'),
        componentStr: '@/views/UserPermissions/userPermissons.vue',
        meta: {
          title: "用户管理",
        },
      },
      {
        path: 'roleManagement',
        name: 'roleManagement',
        component: () => import('@/views/RoleManagement/index.vue'),
        componentStr: '@/views/RoleManagement/index.vue',
        meta: {
          title: "角色管理",
        },
      },
    ],
  },
  //邮箱提示
  // {
  //   path: '/Mail',
  //   name: 'Mail',
  //   component: LAYOUT,
  //   componentStr: 'LAYOUT',
  //   redirect: "/Mail/RejectMail",
  //   meta: {
  //     icon: 'mdi:email-arrow-left',
  //     title: '邮箱提示',
  //   },
  //   children: [
  //     {
  //       path: 'RejectMail',
  //       name: 'RejectMail',
  //       component: () => import('@/views/Mail/RejectMail.vue'),
  //       componentStr: '@/views/Mail/RejectMail.vue',
  //       meta: {
  //         icon: 'mdi:email-arrow-left',
  //         title: '邮箱提示',
  //         hideMenu: true,
  //         loaded: false,
  //         currentActiveMenu: '/RejectMail',
  //       },
  //     }
  //   ],
  // },
  //个人中心
  {
    path: '/PersonalCenter',
    name: 'personalCenter',
    component: LAYOUT,
    componentStr: 'LAYOUT',
    redirect: "/personalCenter/personalCenter",
    meta: {
      icon: 'mingcute:user-lock-line',
      title: '个人中心',
    },
    children: [
      {
        path: 'personalCenter',
        name: 'personalCenters',
        component: () => import('@/views/PersonalCenter/personalCenter.vue'),
        componentStr: '@/views/PersonalCenter/personalCenter.vue',
        meta: {
          title: "个人中心",
          icon: 'mingcute:user-lock-line',
          hideMenu: true,
          loaded: false,
          currentActiveMenu: '/PersonalCenter',
        },
      }
    ],
  },
]
